#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
简单的调试脚本，逐步测试导入和基本功能
"""

import sys
import os

# 添加项目根目录到Python路径
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

print("Python版本:", sys.version)
print("当前工作目录:", os.getcwd())
print("Python路径:", sys.path)

print("\n尝试导入JiKeYunAPIClient...")
try:
    from app.modules1.common.jky_api_client import JiKeYunAPIClient

    print("导入成功!")
    print("JiKeYunAPIClient类:", JiKeYunAPIClient)
except Exception as e:
    print(f"导入失败: {e}")
    import traceback

    traceback.print_exc()

print("\n脚本执行完成")
